package com.sfac.springCloudAccount.service;

import com.github.pagehelper.PageInfo;
import com.sfac.account.entity.User;
import com.sfac.account.vo.UserVo;
import com.sfac.common.vo.Result;
import com.sfac.common.vo.Search;

import java.util.List;

/**
 * @Description: User Service
 * @author: HymanHu
 * @date: 2021年2月21日
 */
public interface UserService {
	
	User getUserByUserNameAndPassword(String userName, String password);
	
	Result<User> login(User user);

	void logout();

	Result<User> insertUser(User user);

	Result<User> updateUser(User user);
	
	User getUserById(int id);

	Result<Object> deleteUserById(int id);
	
	PageInfo<User> getUsersBySearchBean(Search search);
	
	User getUserByUserName(String userName);
	
	List<User> getUsersByKeyWord(String keyword);

	UserVo getUserVoByUserIdAndCityId(int userId, int cityId);

}
